{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <h2>租户列表</h2>
    <div class="row mt-4">
        <div class="col-md-8">
            <div class="list-group">
                {% for tenant in tenants %}
                    <a href="{% url 'form_list' tenant.id %}" class="list-group-item list-group-item-action">
                        {{ tenant.name }}
                    </a>
                {% empty %}
                    <div class="list-group-item">暂无租户</div>
                {% endfor %}
            </div>
        </div>
    </div>
</div>
{% endblock %} 